﻿using FluentNHibernate.Mapping;

namespace Genesis.Persistence.Mapping
{

    using Genesis.Domain;

    public class MaskMap : ClassMap<Mask>
    {

        public MaskMap()
        {

            Id(x => x.Id);
            Map(x => x.CanBypassQueue);
            Map(x => x.CanPostNewThreads);
            Map(x => x.CanPostNewReplies);
            Map(x => x.CanReplyToOwnThreads);
            Map(x => x.CanReplyToOwnReplies);
            Map(x => x.CanReplyToOthersThreads);
            Map(x => x.CanReplyToOthersReplies);
            Map(x => x.CanEditOwnThreads);
            Map(x => x.CanEditOwnReplies);
            Map(x => x.CanEditOthersThreads);
            Map(x => x.CanEditOthersReplies);
            Map(x => x.CanDeleteOwnThreads);
            Map(x => x.CanDeleteOwnReplies);
            Map(x => x.CanDeleteOthersThreads);
            Map(x => x.CanDeleteOthersReplies);
            Map(x => x.CanMoveOwnThreads);
            Map(x => x.CanMoveOwnReplies);
            Map(x => x.CanMoveOthersThreads);
            Map(x => x.CanMoveOthersReplies);
            Map(x => x.CanCloseOwnThreads);
            Map(x => x.CanCloseOthersThreads);
            Map(x => x.CanOpenOwnThreads);
            Map(x => x.CanOpenOthersThreads);
            References<Forum>(x => x.Forum);

        }

    }

}